You are here

function _flippy_sorting_properties in Flippy 7

List the base node properties that are allowed for custom pager sorting. These should all correspond to to columns in the node table.

Return value

Associative array of $machine_name => $human_name

3 calls to _flippy_sorting_properties()
flippy_build_list in ./flippy.module
Function that builds the list of nodes
flippy_form_node_type_form_alter in ./flippy.module
Implements hook_form_FORM_ID_alter().
flippy_variable_info in ./flippy.variable.inc
Implements hook_variable_info().

File

./flippy.module, line 261
Allows administrators to add previous/next pagers to any node type.

Code

function _flippy_sorting_properties() {
  return array(
    'created' => t('Post date'),
    'title' => t('Title'),
    'nid' => t('Node ID'),
  );
}