summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmil Stjerneman2011-11-09 21:03:14 +0100
committerEmil Stjerneman2011-11-09 21:03:14 +0100
commitf951b609ff4a23448e22c1fcfe0eb1be3f55ade8 (patch)
tree228a7df9e25a900ebefeda88b926423d12523039
parent714e278fb756396e64ea300e1e46d1c1948c4573 (diff)
Changed priority to weight that was missing from an earlier commit.7.x-2.0-beta1
-rwxr-xr-xlinkit.install2
-rwxr-xr-xlinkit.theme.inc2
-rwxr-xr-xplugins/export_ui/linkit_profiles.inc2
-rwxr-xr-xplugins/export_ui/linkit_profiles_ui.class.php6
4 files changed, 6 insertions, 6 deletions
diff --git a/linkit.install b/linkit.install
index bf44c20..356d2d2 100755
--- a/linkit.install
+++ b/linkit.install
@@ -62,7 +62,7 @@ function linkit_schema() {
'description' => 'A serialized array with role rids that is assign to this profile.',
),
'weight' => array(
- 'description' => 'Profile priority.',
+ 'description' => 'Profile weight.',
'type' => 'int',
'not null' => TRUE,
'default' => 0,
diff --git a/linkit.theme.inc b/linkit.theme.inc
index bd060e3..8ac8d6c 100755
--- a/linkit.theme.inc
+++ b/linkit.theme.inc
@@ -73,7 +73,7 @@ function _linkit_preprocess_tabledrag_variables(&$variables, $type) {
*/
function theme_linkit_profiles_reorder($variables) {
$form = $variables['form'];
- $header = array(t('Profile'), t('Roles'), t('Priority'));
+ $header = array(t('Profile'), t('Roles'), t('Weight'));
$rows = array();
foreach (element_children($form['profiles']) as $profile_name) {
diff --git a/plugins/export_ui/linkit_profiles.inc b/plugins/export_ui/linkit_profiles.inc
index 996d16f..ae527ee 100755
--- a/plugins/export_ui/linkit_profiles.inc
+++ b/plugins/export_ui/linkit_profiles.inc
@@ -546,7 +546,7 @@ function linkit_profiles_reorder() {
'#title_display' => 'invisible',
'#default_value' => isset($profile->weight) ? $profile->weight : LINKIT_DEFAULT_WEIGHT,
'#attributes' => array(
- 'class' => array('priority'),
+ 'class' => array('weight'),
)
)
);
diff --git a/plugins/export_ui/linkit_profiles_ui.class.php b/plugins/export_ui/linkit_profiles_ui.class.php
index cc7bef2..f764d5a 100755
--- a/plugins/export_ui/linkit_profiles_ui.class.php
+++ b/plugins/export_ui/linkit_profiles_ui.class.php
@@ -16,7 +16,7 @@ class linkit_profiles_ui extends ctools_export_ui {
$header[] = array('data' => t('Name'), 'class' => array('ctools-export-ui-name'));
$header[] = array('data' => t('Storage'), 'class' => array('ctools-export-ui-storage'));
$header[] = array('data' => t('Roles'), 'class' => array('ctools-export-ui-roles'));
- $header[] = array('data' => t('Priority'), 'class' => array('ctools-export-ui-priority'));
+ $header[] = array('data' => t('Weight'), 'class' => array('ctools-export-ui-weight'));
$header[] = array('data' => t('Operations'), 'class' => array('ctools-export-ui-operations'));
return $header;
}
@@ -53,7 +53,7 @@ class linkit_profiles_ui extends ctools_export_ui {
array('data' => check_plain($name), 'class' => array('ctools-export-ui-name')),
array('data' => check_plain($item->{$schema['export']['export type string']}), 'class' => array('ctools-export-ui-storage')),
array('data' => check_plain($role_list), 'class' => array('ctools-export-ui-roles')),
- array('data' => check_plain($item->weight), 'class' => array('ctools-export-ui-priority')),
+ array('data' => check_plain($item->weight), 'class' => array('ctools-export-ui-weight')),
array('data' => $ops, 'class' => array('ctools-export-ui-operations')),
),
'class' => array(!empty($item->disabled) ? 'ctools-export-ui-disabled' : 'ctools-export-ui-enabled'),
@@ -74,7 +74,7 @@ class linkit_profiles_ui extends ctools_export_ui {
public function list_sort_options() {
$options = array(
- 'disabled' => t('Priority'),
+ 'disabled' => t('Weight'),
'disabled_title' => t('Enabled, title'),
'admin_title'=> t('Title'),
'name' => t('Name'),