예제 #1
0
  /**
   * Provide a list of sort options.
   */
  function list_sort_options() {
    $options = parent::list_sort_options();

    $options += array(
      'width' => t('Width'),
      'height' => t('Height'),
    );

    return $options;
  }
예제 #2
0
 function list_sort_options()
 {
     $options = parent::list_sort_options();
     // Replace option labels "title" with "Label"
     $options['disabled'] = t('Enabled, Label');
     $options['label'] = t('Label');
     // Add an additional Category option after the first three options.
     $category_option = array('category' => t('Category'));
     array_splice($options, 3, 0, $category_option);
     return $options;
 }
 /**
  * Adds the 'weight' option to the sort options.
  */
 function list_sort_options()
 {
     $sort_options = parent::list_sort_options();
     $sort_options['weight'] = t('Weight');
     return $sort_options;
 }