protected function EntityPagerSetup::getIdFieldName in Entity Pager 7
Get ID Field Name.
Get the name of the Field that is to be used for the ID value.
Return value
bool Get the ID field name that was previously set in the outSettings object.
1 call to EntityPagerSetup::getIdFieldName()
- EntityPagerOut::calculateNextAllPrevValuesFromView in includes/
EntityPagerOut.inc - Calculate the values for the links.
File
- includes/
EntityPagerSetup.inc, line 315 - General setup base Class for Entity Pager module.
Class
- EntityPagerSetup
- Class EntityPagerSetup.
Code
protected function getIdFieldName() {
if (isset($this->outSettings->id_field_name)) {
return $this->outSettings->id_field_name;
}
else {
drupal_set_message(t('Entity Pager Module: you need to select an ID field in your View
e.g. nid for nodes, or uid for user etc..', 'warning'));
// This should never happen.
return FALSE;
}
}