Commit f951b609 authored by anon's avatar anon

Changed priority to weight that was missing from an earlier commit.

parent 714e278f
......@@ -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,
......
......@@ -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) {
......
......@@ -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'),
)
)
);
......
......@@ -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'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment